package com.art.coconut.example.model;

import com.art.coconut.annotation.CollectionFlag;
import com.art.coconut.annotation.EntityTag;
import com.art.coconut.annotation.PropertyField;
import com.art.coconut.annotation.UnionId;
import com.art.coconut.enums.PropertyTypeEnum;
import lombok.Builder;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

@Data
@EntityTag(value = "BUSINESS", name = "业务基本信息")
@Builder
public class Business {
    @PropertyField("业务基本信息ID")
    @UnionId
    private String id;
    @PropertyField("业务基本信息编号")
    private String bizNum;
    @PropertyField("金额")
    private BigDecimal lmt;
    @CollectionFlag(value = PropertyTypeEnum.LIST_TYPE)
    List<BusinessDetail> businessDetailList;
}
